#include "form.h"
#include "ui_form.h"
Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
    help::setBackground(this,QColor(41,147,204));
}

Form::~Form()
{
    delete ui;
}

void Form::on_pushButton_2_clicked()
{
    this->hide();
    emit showMain();
}

void Form::on_pushButton_clicked()
{
    QString queryCode=ui->lineEdit->text();
    ui->textEdit->setText(help::getResult(queryCode));
}
